/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TIPOSDOENCAS")
public class TiposDoencasProteu implements Serializable{

    @Id
    @Column(name="TID_ST_CODIGO")
    private String tidStCodigo;
    @Column(name="TID_ST_DESCRICAO")
    private String tidStDescricao;

    public String getTidStCodigo() {
        return tidStCodigo;
    }

    public void setTidStCodigo(String tidStCodigo) {
        this.tidStCodigo = tidStCodigo;
    }

    public String getTidStDescricao() {
        return tidStDescricao;
    }

    public void setTidStDescricao(String tidStDescricao) {
        this.tidStDescricao = tidStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TiposDoencasProteu other = (TiposDoencasProteu) obj;
        if ((this.tidStCodigo == null) ? (other.tidStCodigo != null) : !this.tidStCodigo.equals(other.tidStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 47 * hash + (this.tidStCodigo != null ? this.tidStCodigo.hashCode() : 0);
        return hash;
    }



}
